package com.suli.account.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author SuLi
 * @since 2022-04-17
 */
@Getter
@Setter
@ToString
@TableName("real_time_announce")
public class RealTimeAnnounce implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告id
     */
    @TableId(value = "announce_id", type = IdType.AUTO)
    private Integer announceId;

    /**
     * 发布者id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 公告内容
     */
    @TableField("announce_content")
    private String announceContent;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date publishTime;


}
